<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>Ajax文档1</title>
	</head>
	<body>
		<script>
			function showm()
			{							
				var xmlhttp;
				xmlhttp.open("get","http://www.baidu.com",false);
				xmlhttp.send(null);
				alert(xmlhttp.responseText);
			}
		</script>
		<input type="button" value="ajax提交" onclick="showm()" />
		<p id="demo">点击按钮我就会消失</p>
	</body>
</html>
